package com.ruoyi.paper.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.paper.mapper.QtTkPaperMapper;
import com.ruoyi.paper.domain.QtTkPaper;
import com.ruoyi.paper.service.IQtTkPaperService;

/**
 * 试卷题库中间表Service业务层处理
 * 
 * @author zqq
 * @date 2021-11-24
 */
@Service
public class QtTkPaperServiceImpl implements IQtTkPaperService 
{
    @Autowired
    private QtTkPaperMapper qtTkPaperMapper;

    /**
     * 查询试卷题库中间表
     * 
     * @param id 试卷题库中间表主键
     * @return 试卷题库中间表
     */
    @Override
    public QtTkPaper selectQtTkPaperById(Long id)
    {
        return qtTkPaperMapper.selectQtTkPaperById(id);
    }

    /**
     * 查询试卷题库中间表列表
     * 
     * @param qtTkPaper 试卷题库中间表
     * @return 试卷题库中间表
     */
    @Override
    public List<QtTkPaper> selectQtTkPaperList(QtTkPaper qtTkPaper)
    {
        return qtTkPaperMapper.selectQtTkPaperList(qtTkPaper);
    }

    /**
     * 新增试卷题库中间表
     * 
     * @param qtTkPaper 试卷题库中间表
     * @return 结果
     */
    @Override
    public int insertQtTkPaper(QtTkPaper qtTkPaper)
    {
        return qtTkPaperMapper.insertQtTkPaper(qtTkPaper);
    }

    /**
     * 修改试卷题库中间表
     * 
     * @param qtTkPaper 试卷题库中间表
     * @return 结果
     */
    @Override
    public int updateQtTkPaper(QtTkPaper qtTkPaper)
    {
        return qtTkPaperMapper.updateQtTkPaper(qtTkPaper);
    }

    /**
     * 批量删除试卷题库中间表
     * 
     * @param ids 需要删除的试卷题库中间表主键
     * @return 结果
     */
    @Override
    public int deleteQtTkPaperByIds(Long[] ids)
    {
        return qtTkPaperMapper.deleteQtTkPaperByIds(ids);
    }

    /**
     * 删除试卷题库中间表信息
     * 
     * @param id 试卷题库中间表主键
     * @return 结果
     */
    @Override
    public int deleteQtTkPaperById(Long id)
    {
        return qtTkPaperMapper.deleteQtTkPaperById(id);
    }
}
